package ${package_name}.request;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;
import org.hibernate.validator.constraints.Length;
/**
 * @Description 用于修改数据
 * @author ${author}
 * @date ${date}
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class Update${model_name}Request{

<#if model_column?exists>
    <#list model_column as model>
    @ApiModelProperty(value = "${model.columnComment}(长度限制为0-${model.columnSize}个字符)")
        <#if model.columnType = 'VARCHAR' || model.columnType = 'TEXT' || model.columnType = 'CHAR'>
            <#if model_index < 9 >
    @Length(min=0, max=${model.columnSize}, message="Err_${model_name?upper_case}_0${model_index + 1}")
            </#if>
            <#if 9 <= model_index>
    @Length(min=0, max=${model.columnSize}, message="Err_${model_name?upper_case}_${model_index + 1}")
            </#if>
    private String ${model.changeColumnName?uncap_first};

        </#if>
        <#if model.columnType = 'TIMESTAMP' || model.columnType = 'DATETIME' || model.columnType = 'DATE'>
    private Date ${model.changeColumnName?uncap_first};

        </#if>
        <#if model.columnType = 'INT' >
    private Integer ${model.changeColumnName?uncap_first};

        </#if>
        <#if model.columnType = 'TINYINT' >
    private Boolean ${model.changeColumnName?uncap_first};

        </#if>
        <#if model.columnType = 'DOUBLE' >
    private Double ${model.changeColumnName?uncap_first};

        </#if>
    </#list>
</#if>

<#if model_column?exists>
    <#list model_column as model>
        <#if (model.columnType = 'VARCHAR' || model.columnType = 'TEXT') || model.columnType = 'CHAR'>

    public String get${model.changeColumnName}() {
        return this.${model.changeColumnName?uncap_first};
    }

    public void set${model.changeColumnName}(String ${model.changeColumnName?uncap_first}) {
        this.${model.changeColumnName?uncap_first} = ${model.changeColumnName?uncap_first};
    }
        </#if>
        <#if model.columnType = 'TIMESTAMP' || model.columnType = 'DATETIME' || model.columnType = 'DATE'>
        
    public Date get${model.changeColumnName}() {
        return this.${model.changeColumnName?uncap_first};
    }

    public void set${model.changeColumnName}(Date ${model.changeColumnName?uncap_first}) {
        this.${model.changeColumnName?uncap_first} = ${model.changeColumnName?uncap_first};
    }
        </#if>
        <#if model.columnType = 'INT' >
        
    public Integer get${model.changeColumnName}() {
        return this.${model.changeColumnName?uncap_first};
    }
    
    public void set${model.changeColumnName}(Integer ${model.changeColumnName?uncap_first}) {
        this.${model.changeColumnName?uncap_first} = ${model.changeColumnName?uncap_first};
    }
        </#if>
         <#if model.columnType = 'TINYINT' >
         
    public Boolean get${model.changeColumnName}() {
        return this.${model.changeColumnName?uncap_first};
    }
    
    public void set${model.changeColumnName}(Boolean ${model.changeColumnName?uncap_first}) {
        this.${model.changeColumnName?uncap_first} = ${model.changeColumnName?uncap_first};
    }
        </#if>
        
        <#if model.columnType = 'DOUBLE' >
        
    public Double get${model.changeColumnName}() {
        return this.${model.changeColumnName?uncap_first};
    }
    
    public void set${model.changeColumnName}(Double ${model.changeColumnName?uncap_first}) {
        this.${model.changeColumnName?uncap_first} = ${model.changeColumnName?uncap_first};
    }
        </#if>
    </#list>
</#if>

}